//
//  Constant.h
//  JianChaRiBao
//
//  Created by yuzhou on 13-5-8.
//  Copyright (c) 2013年 wzyk. All rights reserved.
//

//appID
#define ITUNES_APP_KEY @"820112558" //今日中国

//#define ITUNES_APP_KEY @"682256085" //新版三合一


#define USER_ID @"140511"


//  今日中国id: 30619
//  保险报id: 31912
//30754  十月
//appid  46
//storid  64
//indefinty_key : d303ffe654f529a077681298e608ddb3
//app_key : 	2b738a9ee5f2a3e45e35e1f5562bffff




//tab按钮标识
enum {
    kTabIndex = 100,
    kTabShelf,
    kTabAnnouncement,
    kTabAccount
};

//导航按钮标识
enum {
    kNewsIndex = 0,
    kMagazineIndex,
    kListenIndex,
    kNovelIndex,
    kMainIndex
};



#define NEWSPAPERID @"30754"

//做版本判断的key
#define IDENTIFY_KEY @"d303ffe654f529a077681298e608ddb3"
#define APP_KEY @"2b738a9ee5f2a3e45e35e1f5562bffff"


//登录
#define kLoginSuccess @"logoinSuccess"
#define kLoginFail @"logoinFail"
#define kLogout @"kLogout"
//注册
#define kRegisterSuccess @"kRegisterSuccess"
#define kRegisterFail @"kRegisterFail"

#define kConnectionEnable @"kConnectionEnable"
#define kDownloadViaWWAN @"kDownloadViaWWAN"


//听书
#define kNotifyGotListenInfo @"kNotifyGotListenInfo"
#define kNotifyGotListenContent @"kNotifyGotListenContent"

#define FolderPath(item_id) [NSHomeDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"Library/Caches/mp3/%@",item_id]]
#define DownloadPath(item_id,subitem_id) [NSHomeDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"Library/Caches/mp3/%@/%@.mp3",item_id,subitem_id]]
#define TempPath(item_id,subitem_id) [NSHomeDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"Library/Caches/mp3/%@/%@.tmp",item_id,subitem_id]]

#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

#define kAllDownload @"kAllDownload"

#define kUpdateProgressInShelfCell @"kUpdateProgressInShelfCell"
#define kOneDownloadFinished @"kOneDownloadFinished"
#define kUpdateDownloadStatus @"kUpdateDownloadStatus"

#define kAudioPlayerHistoryIndex @"kAudioPlayerHistoryIndex"
#define kAudioPlayerMode @"kAudioPlayerMode"
#define kPlayerStateDidChange @"kPlayerStateDidChange"
#define kAudioProgressDidChange @"kAudioProgressDidChange"
#define kPlayerIndexDidChange @"kPlayerIndexDidChange"
#define kReadAuthorityFail @"kReadAuthorityFail"
#define kCoverImage @"kCoverImage"

#define KDownloading @"KDownloading"
#define KDownloadComplete @"KDownloadComplete"


#define NovelInfo @"NovelInfo"
#define MagaInfo @"MagaInfo"
#define ListenCover @"ListenCover"

#define Kmodify @"Kmodify"
#define KmodifyTel @"KmodifyTel"
enum kShelfButton
{
    kShelfButtonDownloaded = 201,
    kShelfButtonDownloading,
    kShelfButtonPlayrecord
};

#define PlayerBarHeight 42

//到期时间
#define EndTime @"EndTime"

#define UUID [OpenUDID value]

